import uvicorn
from fastapi import FastAPI
from squirrel_bakend.spiderapi.spider_control import scrapy_app

app = FastAPI()

app.include_router(scrapy_app, prefix="/api", tags=["爬虫接口"])

if __name__ == "__main__":
    uvicorn.run("main:app", host="0.0.0.0", port=8021, workers=1, loop="asyncio", timeout_keep_alive=5, limit_concurrency=100, backlog=2048, reload=False)
